package com.chinasoft.many_to_many;

import com.chinasoft.bean.Course;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourcesMapper {

    @Select("select c.id,c.name from stu_cr sc ,course c where sc.cid=c.id and sc.sid=#{id}")
    public List<Course> selectBySid(Integer id);
}